﻿using Ken_WPF_UI.Model;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;

namespace Ken_WPF_UI.ViewModel
{

    public class TreeItemModel
    {

        public static Collection<ResourceDictionary> mergedDictionaries = App.Current.Resources.MergedDictionaries;

        public int ParentId { get; set; }

        public string TreeName { get; set; }

        public int TreeId { get; set; }

        public bool IsOpen { get; set; }

        /// <summary>
        /// 样式的key  Target要对的上 不然会报错
        /// </summary>
        public Style StyleKey { get; set; }

        public List<TreeItemModel> SubList { get; set; }

        public TreeItemModel()
        {
            SubList = new List<TreeItemModel>();
            StyleKey = (Style)mergedDictionaries[0]["treeViewMainStyle"];
        }




    }
}
